/* header style */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 30px;
  background-color: #fff;
  box-shadow: 2px 0px 8px 0px rgba(0, 0, 0, 0.1);
  &.simple-header {
    background: rgba(#432E99, .9);
    &.header-transparent-theme {
      box-shadow: none;
      background: transparent;
    }
  }
  &.simple-header .menu-link {
    color: #fff;
  }
  &.simple-header .logo-box {
    background-image: url('../images/header-simple-logo.png');
  }
  & .logo-box {
    flex-shrink: 0;
    width: 140px;
    margin-right: 60px;
    height: 100%;
    background: url("../images/header-logo.png") left center / auto 45px no-repeat;
  }
  & .menu-link {
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    color: #303133;
    transition: all 0.3s;
    margin-right: 30px;
    &:hover, &.is-active{
      color: #FF6407;
    }
    &.disabled {
      pointer-events: none;
      color: #909399;
    }
    &.lang-link {
      margin-right: 0;
      margin-left: 23px;
    }
    &.header-drop-link {
      display: inline-flex;
      align-items: center;
      & > span {
        padding-right: 4px;
      }
    }
  }
  & .right-box {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  & .media-tools-btn, & .media-index-btn {
    display: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: #303133;
  }
  & .media-index-btn {
    margin-left: 8px;
  }
}
.header-dropdown-box {
  .tools-down-menu {
    position: relative;
    display: flex;
    width: 535px;
    margin: 4px -16px 8px;
    & > div {
      flex: 1;
    }
    &:before {
      content: '';
      position: absolute;
      width: 1px;
      height: 100%;
      left: 50%;
      top: 0;
      background: #F5F6F8;
    }
  }
  .type-title {
    color: #909399;
    font-size: 12px;
    line-height: 24px;
    padding-left: 30px;
  }
} 
.doc-tools-dropdown {
  .tools-down-menu {
    display: block;
    width: 256px;
    margin: -12px -16px;
    &:before {
      display: none;
    }
  }
}
.media-tools-box-mask {
  cursor: pointer;
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.37);
  left: 0;
  top: 0;
  z-index: 2;
  & .close-btn {
    position: absolute;
    cursor: pointer;
    right: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
  }
}
.media-tools-box {
  width: 100%;
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 34px 21px 21px;
  & .tab-box {
    overflow-x: auto;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: #909399;
    padding: 0 5px;
    &::-webkit-scrollbar {
      width: 0 !important;
      height: 0 !important;
      display: none;
    }
    & > div {
      cursor: pointer;
      display: inline-block;
      vertical-align: middle;
    }
    & .tab-item {
      padding-right: 24px;
      &:last-child {
        padding-right: 0;
      }
    }
    & .tab-item.is-active {
      color: #191A1B;
    }
  }
  & .tab-content-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    & .product-box {
      width: calc(50% - 10px);
      margin: 20px 0 0 0;
      font-size: 10px;
      box-shadow: 2px 2px 15px 0px rgba(152, 153, 155, 0.17);
      border-radius: 10px;
      &.database {
        width: 100%;
      }
    }
    & .tool-icon {
      padding: 0 6px;
      margin-right: 14px;
      background: transparent;
    }
    & .title {
      font-size: 13px;
    }
    & .box-info {
      flex: 1;
    }
  }
}
@media screen and (max-width: 1100px) {
  .header-container .logo-box {
    width: 115px;
    background-size: auto 40px;
    margin-right: 40px;
  }
  .header-container .menu-link {
    margin-right: 15px;
    &.lang-link {
      margin-right: 0;
      margin-left: 15px;
    }
  }
}
@media screen and (max-width: 920px) {
  .header-container {
    padding: 0 12px;
    & .logo-box {
      width: 120px;
    }
    & .menu-link:not(.lang-link){
      display: none;
    }
    & .media-tools-btn, & .media-index-btn, & .media-tools-box-mask {
      display: block;
    }
  }
}
@media screen and (max-width: 750px){
  .header-container {
    height: 47px;
    & .logo-box {
      background-size: auto 29px;
    }
  }
}
@media screen and (max-width: 600px) {
  .media-tools-box {
    & .tab-box {
      font-size: 12px;
      padding: 0 5px 5px;
    }
    & .tab-content-box {
      & .product-box {
        width: 100%;
        margin: 10px 0 0 0;
        padding: 10px;
      }
      & .title {
        font-size: 11px;
      }
      & .tool-icon {
        margin-right: 6px;
      }
    }
  }
}
